<?php
include('../../inc/global.inc');
include("../islogin.php");
include("../../job/inc/fun.php");
$url=$_SERVER['HTTP_REFERER'];
?>
<HTML>
<HEAD>
<TITLE>Admin</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<LINK href="../css/css.css" rel=stylesheet>
<script type='text/javascript' src="../js/islogin.js" charset="gb2312"></script>
</HEAD>
<BODY>
<?php
if($_POST['act_xg']){
if(strlen($_POST[m_psw])==19)
	 {
	 }else{
	   $psw=substr(md5($_POST[p_psw]),7,19);
	   @mysql_query("update job_per set p_psw='$psw' where id='".$_POST['iid']."'");
	 }
echo "<script>alert('修改成功');location='".$_POST['urls']."'</script>";
}
?>
  <table width="780" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">
    <tr>
      <td height="25" bgcolor="#EEEEF9" style="padding-left:5px;">会员信息&nbsp;&nbsp;<a href="javascript:history.go(-1)">返回</a></td>
    </tr>
</table>
<?php
$sql="select * from job_per where id=".$_GET['xg_id'];
$rs=mysql_query($sql);
$row=mysql_fetch_array($rs)
?>
<table cellspacing="1" cellpadding="0" width="780" align="center" bgcolor="#000000" border="0">
  <form action="" method="post" name="form1"  onSubmit="return checktime()">
      <tr>
        <td align="center" bgcolor="#8DA8CF" colspan="2" height="45">基本信息</td>
      </tr>
	  <tr>
        <td align="center" width="150" bgcolor="#f0f0f0" height="25">会员编号</td>
        <td width="627" bgcolor="#ffffff" style="padding-left:3px;"><?=$row['id']?></td>
      </tr>
	  <tr>
        <td align="center" width="150" bgcolor="#f0f0f0" height="25">会员帐号<input type="hidden" name="iid" value="<?=$row['id']?>"></td>
        <td width="627" bgcolor="#ffffff" style="padding-left:3px;"><input name="p_user" type="text" value="<?=$row[p_user]?>" size="20">(禁止修改)</td>
      </tr>
	<tr>
        <td align="center" bgcolor="#f0f0f0" height="25">密码</td>
        <td bgcolor="#ffffff" style="padding-left:3px;"><input name="p_psw" type="password" id="p_psw" value="<?=$row[p_psw]?>" size="21"/></td>
      </tr>
      <tr>
        <td height="25" align="center" bgcolor="#f0f0f0">联系人姓名</td>
        <td bgcolor="#ffffff" style="padding-left:3px;"><?=$row[p_name]?></td>
      </tr>
      <tr>
        <td height="25" align="center" bgcolor="#f0f0f0">性别</td>
        <td bgcolor="#ffffff" style="padding-left:3px;"><?=job_sex($row[p_sex])?></td>
      </tr>
      <tr>
        <td align="center" bgcolor="#f0f0f0" height="25">身高</td>
        <td bgcolor="#ffffff" style="padding-left:3px;"><?php if($row[p_height]){echo $row[p_height];}else{echo "未填";}?></td>
      </tr>
      <tr>
        <td align="center" bgcolor="#f0f0f0" height="25">民族</td>
        <td bgcolor="#ffffff" style="padding-left:3px;"><?=p_nation($row[p_nation])?></td>
      </tr>
      <tr>
        <td align="center" bgcolor="#f0f0f0" height="25">婚姻状况</td>
        <td bgcolor="#ffffff" style="padding-left:3px;"><?=p_married($row[p_married])?></td>
      </tr>
	  <tr>
        <td height="19" align="center" bgcolor="#f0f0f0">出生日期</td>
        <td bgcolor="#ffffff" style="padding-left:3px;"><?=$row[p_birth_y]?>-<?=$row[p_birth_m]?></td>
      </tr>
	  <tr>
        <td height="25" align="center" bgcolor="#f0f0f0">户口所在地</td>
        <td bgcolor="#ffffff" style="padding-left:3px;"><?=$row[p_hukou_pro2]?> <?=$row[p_hukou_city2]?></td>
      </tr>
	  <tr>
        <td height="25" align="center" bgcolor="#f0f0f0">住址</td>
        <td bgcolor="#ffffff" style="padding-left:3px;"><?=$row[p_address]?></td>
      </tr>
	  <tr>
        <td height="25" align="center" bgcolor="#f0f0f0">现居住地</td>
        <td bgcolor="#ffffff" style="padding-left:3px;"><?=$row[p_pro2]?>-<?=$row[p_city2]?></td>
      </tr>
	  <tr>
        <td height="25" align="center" bgcolor="#f0f0f0">固定电话</td>
        <td bgcolor="#ffffff" style="padding-left:3px;"><?=$row[p_tel]?></td>
      </tr>
	  <tr>
        <td height="25" align="center" bgcolor="#f0f0f0">邮编</td>
        <td bgcolor="#ffffff" style="padding-left:3px;"><?=$row[p_post]?></td>
      </tr>
	  <tr>
        <td height="25" align="center" bgcolor="#f0f0f0">电子邮件</td>
        <td bgcolor="#ffffff" style="padding-left:3px;"><?=$row[p_email]?></td>
      </tr>
	  <tr>
        <td height="25" align="center" bgcolor="#f0f0f0">移动电话</td>
        <td bgcolor="#ffffff" style="padding-left:3px;"><?=$row[p_phone]?></td>
      </tr>
	  <tr>
        <td height="25" align="center" bgcolor="#f0f0f0">目前待遇</td>
        <td bgcolor="#ffffff" style="padding-left:3px;"><?=job_salary($row[p_salary])?></td>
      </tr>
	  <tr>
        <td height="25" align="center" bgcolor="#f0f0f0">工作年限</td>
        <td bgcolor="#ffffff" style="padding-left:3px;"><?=job_exp($row[p_exp])?></td>
      </tr>
	  <tr>
        <td height="25" align="center" bgcolor="#f0f0f0">最高学历</td>
        <td bgcolor="#ffffff" style="padding-left:3px;"><?=job_edu($row[p_edu])?></td>
      </tr>
      <tr>
        <td height="45" colspan="2" align="center" bgcolor="#8DA8CF">自我评价</td>
      </tr>
	  <tr>
	    <td height="25" align="center" bgcolor="#f0f0f0">自我评价</td>
	    <td bgcolor="#ffffff"  style="padding:3px; line-height:22px;"><?=$row[p_comment]?></td>
      </tr>
 <tr>
	   <td height="45" colspan="2" align="center" bgcolor="#8DA8CF">求职意向</td>
      </tr>
<tr>
          <td height="25" align="center" bgcolor="#f0f0f0">期望工作性质：</td>
          <td bgcolor="#FFFFFF" style="padding-left:3px;"><?=job_nature($row[p_nature])?></td>
    </tr>
        <tr>
          <td height="25" align="center" bgcolor="#f0f0f0">期望工作地点：</td>
          <td bgcolor="#FFFFFF" style="padding-left:3px;">
		  <?php $p_qw_city=explode("@",$row[p_qw_city]);
		         echo $p_qw_city[1];
		  ?></td>
        </tr>
        <tr>
          <td height="25" align="center" bgcolor="#f0f0f0">期望工作行业：</td>
          <td bgcolor="#FFFFFF" style="padding:3px; line-height:22px;"><?php
		  $p_hy=explode("@",$row[p_hy]);
		  $sqls=" and (";
		  for($i=0;$i<=count($p_hy);$i++){
		      if($p_hy[$i]){
		       $sqls=$sqls." id='$p_hy[$i]'";
			     if($p_hy[$i+1]){
			        $sqls=$sqls." or ";
					}
				}
		  }
		  $sqls=$sqls." )";
		  $rs2=@mysql_query("select * from job_hy where job_hy_id=0 ".$sqls." order by id asc");
		  while($row2=@mysql_fetch_array($rs2)){
		  ?><?=$row2[job_hy_name]?>&nbsp;<?php }?></td>
        </tr>
        <tr>
          <td height="25" align="center" bgcolor="#f0f0f0">期望工作职位：</td>
          <td bgcolor="#FFFFFF" style="padding:3px; line-height:22px;"><?php
		  $p_class=explode("@",$row[p_class]);
		  $sqls=" and (";
		  for($i=0;$i<=count($p_class);$i++){
		      if($p_class[$i]){
		       $sqls=$sqls." id='$p_class[$i]'";
			     if($p_class[$i+1]){
			        $sqls=$sqls." or ";
					}
				}
		  }
		  $sqls=$sqls." )";
		  $rs2=@mysql_query("select * from job_class where j_c_id=0 ".$sqls." order by id asc");
		  while($row2=@mysql_fetch_array($rs2)){
		  ?><?=$row2[j_c_name]?>&nbsp;<?php }?></td>
        </tr>
        <tr>
          <td height="25" align="center" bgcolor="#f0f0f0">期 望 月 薪：</td>
          <td bgcolor="#FFFFFF" style="padding-left:3px;"><?=job_salary($row[p_expected_salary])?></td>
        </tr>
        <tr>
          <td height="25" align="center" bgcolor="#f0f0f0">目前工作状况：</td>
          <td bgcolor="#FFFFFF" style="padding-left:3px;"><?=p_status($row[p_status])?></td>
        </tr>
     <tr>
       <td height="25" align="center" bgcolor="#f0f0f0">简历是否公开：</td>
       <td bgcolor="#FFFFFF" style="padding-left:3px;"><?=p_isopen($row[p_isopen])?></td>
     </tr>
      <tr>
        <td height="45" colspan="2" align="center" bgcolor="#8DA8CF">工作经历</td>
      </tr>
	  <tr>
	    <td height="25" align="center" bgcolor="#f0f0f0">工作经历</td>
	    <td bgcolor="#ffffff"  style="padding:3px; line-height:22px;"><?php if($row[job_work]){echo unhtml($row[job_work]);}else{echo "无";}?></td>
      </tr>
      <tr>
        <td height="45" colspan="2" align="center" bgcolor="#8DA8CF">教育经历</td>
      </tr>
	  <tr>
	    <td height="25" align="center" bgcolor="#f0f0f0">教育经历</td>
	    <td bgcolor="#ffffff"  style="padding:3px; line-height:22px;"><?php if($row[p_educate]){echo unhtml($row[p_educate]);}else{echo "无";}?></td>
      </tr>
      <tr>
        <td height="45" colspan="2" align="center" bgcolor="#8DA8CF">语言能力</td>
      </tr>
	  <tr>
	    <td height="25" align="center" bgcolor="#f0f0f0">外语语种</td>
	    <td bgcolor="#ffffff" style="padding-left:3px;"><?=$row[p_lan]?></td>
      </tr>
	 <tr>
	   <td height="45" colspan="2" align="center" bgcolor="#8DA8CF">管理员处理</td>
      </tr>
      <tr>
        <td align="center" bgcolor="#f0f0f0" height="25">注册时间</td>
        <td bgcolor="#ffffff" style="padding-left:3px;"><?=$row[p_addtime]?></td>
      </tr>
	 <tr>
	   <td height="25" align="center" bgcolor="#f0f0f0">更新时间</td>
	   <td bgcolor="#ffffff" style="padding-left:3px;"><?=$row[p_edittime]?></td>
    </tr>
	 <tr>
	   <td height="25" align="center" bgcolor="#f0f0f0">最新登陆时间</td>
	   <td bgcolor="#ffffff" style="padding-left:3px;"><?=$row[p_logintime]?></td>
    </tr>
	 <tr>
	   <td height="25" align="center" bgcolor="#f0f0f0">&nbsp;</td><input type="hidden" name="urls" value="<?=$url?>">
	   <td bgcolor="#ffffff" style="padding-left:3px;"><input type="submit" value="提交">
	   <input type="hidden" name="act_xg" value="ok"></td>
      </tr>
  </form>
</table>
</BODY>
</HTML>
